/*
 * base_decoder.h
 *
 *  Created on: Nov 30, 2016
 *      Author: lwang
 */

#ifndef INCLUDE_BASE_DECODER_H_
#define INCLUDE_BASE_DECODER_H_

#include <string>
#include <opencv2/opencv.hpp>

using namespace std;
using namespace cv;

class BaseDecoder {

public:
	virtual ~BaseDecoder(){};

	virtual int init() = 0;
	virtual int decodeFrame(Mat& frame, int& gotFrame, unsigned char* encode_buffer, int buffer_length, int& used_length) = 0;
	virtual void close() = 0;

};

#endif /* INCLUDE_BASE_DECODER_H_ */
